<template>
  <StyleProvider hashPriority="low" :transformers="[legacyLogicalPropertiesTransformer]">
    <ConfigProvider :locale="getAntdLocale">
      <AppProvider>
        <RouterView />
      </AppProvider>
    </ConfigProvider>
  </StyleProvider>
</template>

<script lang="ts" setup>
import {onMounted} from 'vue'
import {ConfigProvider, legacyLogicalPropertiesTransformer, StyleProvider} from 'ant-design-vue';
import {AppProvider} from '/@/components/Application';
import {useTitle} from '/@/hooks/web/useTitle';
import {useLocale} from '/@/locales/useLocale';
// 解决日期时间国际化问题
import 'dayjs/locale/zh-cn';
// support Multi-language
const { getAntdLocale } = useLocale();

useTitle();

onMounted(() => {
  // window.$wujie?.bus.$on("vue3-router-change", (path) => router.push(path));
})

</script>

<style lang="less">
  body {
    // line-height: 1.5715;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
      'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
      'Noto Color Emoji';
  }
</style>
